<#include "../common/header.htm">
<div class="content-wrapper">
	<section class="content-header">
		<ol class="breadcrumb">
			<li><a href="${ctx}/">首页</a></li>
			<#if moduleCode=="companylist">
				<li class="active"><a href="${ctx}/company/list">企业管理</a></li>
			<#elseif moduleCode=="companyquerylist">
				<li class="active"><a href="${ctx}/company/querylist">企业查询</a></li>
			<#else>
				<li class="active"><a href="${ctx}/company/systemlist">企业管理</a></li>
			</#if>
			<li class="active"><a href="#">详情</a></li>
		</ol>
		<a class="btn-return" href="javascript:history.back(-1);">返回</a>
	</section>
	<section class="content">
		<div class="detail-info-box">
	        <h4>注册信息：</h4>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">公司名称：</label> 
					<span class="info" title="${company.companyName!}">${company.companyName!}</span>
				</div>
				<div class="col-sm-6">
					<label class="input_text">公司简称：</label> 
					<span class="info" title="${company.shortName!}">${company.shortName!}</span>
				</div> 
			</div>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">所属地区：</label> 
					<span class="info">${company.provinceName!}&nbsp;${company.cityName!}</span>
				</div>
				<div class="col-sm-6">
					<label class="input_text">所属行业：</label> 
					<#if company.industryId?? && industryMap["${company.industryId}"]?? >
						<span class="info">${industryMap["${company.industryId}"]!}</span>
					<#else>
						<span class="info"></span>
					</#if>
				</div> 
			</div>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">企业ID：</label>
					<span class="info">${company.companyId!}</span> 
				</div>
				<div class="col-sm-6">
					<label class="input_text">销售：</label> 
					<span class="info">${company.saleName!}</span>
				</div> 
			</div>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">AI数：</label> 
					<span class="info">${company.robotNum!}</span>
				</div>
				<div class="col-sm-6">
					<label class="input_text">并发数：</label> 
					<span class="info">${company.concurrencyNum!}</span>
				</div> 
			</div>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">代理商：</label> 
					<span class="info">${company.agentsName!}</span>
				</div>
				<div class="col-sm-6">
					<label class="input_text">客户经理：</label> 
					<span class="info">${company.accountManagerName!}</span>
				</div> 
			</div>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">登录名：</label> 
					<span class="info" title="${company.loginName!}">${company.loginName!}</span>
				</div>
				<div class="col-sm-6">
					<label class="input_text">管理员姓名：</label> 
					<span class="info" title="${company.userName!}">${company.userName!}</span>
				</div> 
			</div>
			<div class="form-group form-inline">
			    <div class="col-sm-6">
					<label class="input_text">联系电话：</label> 
					<span class="info" title="${company.phone!}">${company.phone!}</span>
				</div>
			    <div class="col-sm-6">
					<label class="input_text">开户时间：</label> 
					<span class="info" title="${company.insertTime!}">${company.insertTime!}</span>
				</div>
			</div>
		</div>
		 <div class="detail-process-wrapper">
			<div class="title-box">
				<span>通道信息</span>
			</div>
			<#-- 这里不分页 -->
			<table class="table table-hover table-bordered table-striped">
				<thead>
					<tr>
						<th>#</th>
						<th>编号</th>
						<th>类型</th>
						<th>外呼号码</th>
						<th>所在网关</th>
						<th>AI数</th>
						<th>并发数</th>
						<th>开通日期</th>
						<th>到期日期 </th>
						<th >状态 </th>
					</tr>
				</thead>
				<tbody>
					<#list companyChannelList as c>
						<tr>
							<td>${c_index+1}</td>
							<td>${c.channelId!}</td>
							<#if c.channelType?? && channelTypeMap["${c.channelType}"]?? >
								<td>${channelTypeMap["${c.channelType}"]!}</td>
							<#else>
								<td></td>
							</#if>
							<td>${c.channelName!}</td>
							<td>${c.voxGatewayName!}</td>
							<td>${c.robotNum!}</td>
							<td>${c.concurrentNum!}</td>
							<td>${c.beginTime!}</td>
							<td>${c.endTime!}</td>
							<#if c.channelStatus?? && channelStateMap["${c.channelStatus}"]?? >
								<td>${channelStateMap["${c.channelStatus}"]!}</td>
							<#else>
								<td></td>
							</#if>
						</tr>
					</#list>
				</tbody>
			</table>
		</div>
	</section>
</div>
<#include "../common/footer.htm">
